<?php

namespace app\admin\controller;

use think\Controller;
use buildView\Form;
use buildView\Grid;
use app\common\model\ShopAnswer;
use app\common\service\Status;

/**
 * 反馈管理
 * Class Answer
 * @package app\admin\controller
 */
class Answer extends Controller
{
    /**
     * 列表
     * @auth true
     * @menu true
     * @return string
     */
    public function index()
    {
		$grid = new Grid(new ShopAnswer);
		$grid->user()->userInfo();
        $grid->column('info','手机号/邮箱');
        $grid->column('content','反馈内容');
		$grid->column('create_at','反馈时间');
		$grid->filter(function ($filter){
            $filter->dateBetween('create_at','反馈时间');
		});
		$grid->hideAddButton();
        $grid->hideExportButton();
        $grid->actions(function ($action){
            $action->hideEdit();
            $action->hideDetail();
        });
        return $grid->view();
    }
}
